<template>
  <view class="contact">
    <image class="img" src="https://www.hubeicfc.com/assets/res/about-us.png"></image>
    <view class="info">
      <view @click="phone">联系电话：15009936836 (点击拨打)</view>
      <view>地址：新疆石河子市北五路185号(石河子经济技术开发区) 石河子职业技术学院</view>
      <map class="map" :longitude="longitude" :latitude="latitude" :markers="covkey"></map>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        longitude: 86.071114,
        latitude: 44.314622,
        covkey:[{
          latitude: 44.314622,
          longitude: 86.071114,
          iconPath: '../../static/dt.png',
          width: 60,
          height: 60
        }]
      }
    },
    methods: {
      phone(){
        uni.makePhoneCall({
        	phoneNumber: '15009936836' //仅为示例
        });
      }
    },
    onPullDownRefresh() {
    		setTimeout(function () {
    			uni.stopPullDownRefresh();
    		}, 1000);
    }
  }
</script>

<style lang="scss">
  .contact{
    .img{
      width: 750rpx;
      height: 320rpx ;
    }
    .info{
      padding: 10rpx 20rpx;
      font-size: 30rpx;
      view{
        line-height: 80rpx;
        border-bottom: 1px solid #eee;
      }
    }
    .map{
      width: 750rpx;
      height: 750rpx;
    }
  }
</style>
